SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
SET(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "")



SET(MCU_FLAGS "-mcpu=cortex-m0 -mthumb -mthumb-interwork")

SET(CMAKE_C_FLAGS "${MCU_FLAGS} -gdwarf-2 -MD -Wall -Os -mapcs-frame -ffunction-sections -fdata-sections -DUSE_HT32F52342_52 -DUSE_HT32_DRIVER -DUSE_HT32F52352_SK -DUSE_MEM_HT32F52352")

SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR})

# ADD_DEFINITIONS(
#     -DUSE_HT32F52342_52
#     -DUSE_HT32_DRIVER
#     -DUSE_HT32F52352_SK
#     -DUSE_MEM_HT32F52352
# )

# SET(CMAKE_BUILD_TYPE "Debug")
# SET(CMAKE_BUILD_TYPE "Release")